/ Assembly List / LJCNetCommon / CodeTokenizer / CombineXmlCommentTokens

Namespace - LJCNetCommon


Parameters
tokenIndex - The token index.

Syntax

C#
public Void CombineXmlCommentTokens(Int16 tokenIndex)

Combines the tokens for an XMLComment. (E)

Example

C#
using LJCNetCommon;
        
var tokenizer = new CodeTokenizer();
string text = " /// <summary>This is an XML comment.</summary>";
tokenizer.SetTokens(text);
short tokenIndex = 0;
string token = tokenizer.GetToken(tokenIndex);
if (tokenizer.IsCodeXMLComment(token))
{
  // All text is processed as one token.
  tokenizer.CombineXmlCommentTokens(tokenIndex);
}

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.